<?php


class TemplateEngineException extends Exception {


    public static $DOCUMENT_NOT_FOUND = 1;
    public static $TEMPLATE_NOT_FOUND = 2;
    public static $FILE_NOT_WRITEABLE = 3;
    public static $CONFIG_ERROR       = 4;
    public static $NO_VIEW_PERMISSION = 5;
    public static $NO_ADD_PERMISSION  = 6;
    public static $NO_DEL_PERMISSION  = 7;
    public static $NO_EDIT_PERMISSION = 8;
    public static $NO_PUB_PERMISSION  = 9;
    public static $NO_FSYS_PERMISSION = 10;
    public static $NO_APP_PERMISSION  = 11;
    public static $NO_LANGUAGE        = 12;
    public static $MISSING_BUILDMODE  = 13;


    public function  __construct($message, $code, $previous = null) {
        if (version_compare(PHP_VERSION, '5.3.0', '<'))
            parent::__construct($message, $code);
        else
            parent::__construct($message, $code, $previous);
    }

}